<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<%@include file="../blocks/header.jsp" %>



<div class="row">
    <h4>Личный кабинет администратора</h4>

    <div class="span8">
        <%@include file="menu.jsp" %>
        <div class="thumbnail">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>id</th>
                    <th>Врач</th>
                    <th></th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="doctor" items="${doctors}">
                    <tr>
                        <td>${doctor.id}</td>
                        <td>${doctor.fullName}</td>
                        <td>
                            <a href="/doctor/infoDoctor/${doctor.id}.html">Карточка врача</a>
                            <c:if test="${doctor.enabled}">
                                <a href="/admin/disableDoctor/${doctor.id}.html">Заблокировать</a>
                            </c:if>
                            <c:if test="${!doctor.enabled}">
                                <a href="/admin/enableDoctor/${doctor.id}.html">Разблокировать</a>
                            </c:if>
                            <a href="/admin/removeDoctor/${doctor.id}.html">Удалить</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>

<%@include file="../blocks/footer.jsp" %>